/**
 * 
 */
package com.sunjq.fetchdata.adapter;

import java.util.List;
import java.util.Map;

import android.content.Context;
import android.widget.SimpleAdapter;

import com.sunjq.fetchdata.R;
import com.sunjq.fetchdata.dao.FetchDataWaiShiChuDao;


/**
 * @author SJQ
 *
 */
public class NoticeAdapter extends SimpleAdapter{
	
	private NoticeAdapter(Context context, List<? extends Map<String, ?>> data,
			int resource, String[] from, int[] to) {
		super(context, data, resource, from, to);
	}


	public NoticeAdapter(Context context, List<? extends Map<String, ?>> data, int resource) {
		super(context, data, resource, FROM, TO);
	}

	static final String[] FROM = {FetchDataWaiShiChuDao.COLUMN_NAME_TITLE, FetchDataWaiShiChuDao.COLUMN_NAME_URL};
	static final int[] TO = {R.id.notice_title, R.id.notice_desc};

	


	
}
